package org.hrc.puzzleGame.controller;

import org.hrc.puzzleGame.constant.StateConstant;
import org.hrc.puzzleGame.mapper.UserMapper;
import org.hrc.puzzleGame.mapper.impl.UserMapperImpl;
import org.hrc.puzzleGame.model.User;

import java.sql.SQLException;

public class RegisterController {
    private static UserMapper  userMapper = new UserMapperImpl();

    public  void register(User user) throws SQLException {
        user.setState(StateConstant.FORMAL);
        userMapper.addUser(user);
    }
}
